Next | Prev | Up | Top | Contents | Index

Modifying the Interface Address

To change the default interface address, modify the /etc/config/netif.options file. All interface names require valid Internet addresses as found in the /etc/hosts file. The $HOSTNAME variable pulls the station name from the /etc/sys_id file. This example changes the second, third, and fourth interface addresses as follows:

Follow these instructions to modify your network interface address according to the above example:

  1. Verify or assign a valid entry for each interface in the /etc/hosts file. Write down the name and address for each interface.

  2. Using vi or any editor, open the netif.options file for editing:

    vi /etc/config/netif.options

  3. Locate and modify the appropriate interface address variable. For this example, we want to modify the second, third, and fourth interface address variables. Find and modify each variable as follows:

    Change from this:

    : if2addr=gate-$HOSTNAME
    if3addr=gate2-$HOSTNAME
    if4addr=gate3-$HOSTNAME

    to this:

    if2addr=fddi-$HOSTNAME
    if3addr=gate-goofy
    if4addr=192.30.28.26

    Caution: Note that all default variables (primary and secondary) start with a leading colon (:). You must remove it and enter the interface address to change the default interface address.

  4. Save and exit the file.
Repeat this procedure for each interface address change. If you have no other changes, reconfigure and reboot the station.


Next | Prev | Up | Top | Contents | Index